package com.fesine.learn.design.pattern.structural.decorator.v2;

/**
 * @description: 类描述
 * @author: fesine
 * @createTime:2019/4/28
 * @update:修改内容
 * @author: fesine
 * @updateTime:2019/4/28
 */
public class Test {

    public static void main(String[] args) {
        ABattercake battercake = new Battercake();

        battercake = new EggDecorator(battercake);
        battercake = new SausageDecorator(battercake);
        battercake = new EggDecorator(battercake);
        System.out.println(battercake.getDesc() + " 销售价格:" + battercake.cost());
    }
}
